FROM openjdk:8u121-jdk
WORKDIR /app
COPY vessels-check-admin/target/*.jar app.jar
# 复制前端构建后的文件
# COPY frontend/dist /app/html
#FROM nginx:latest
#COPY nginx.conf /etc/nginx/conf.d/default.conf
ENV JVM_XMS="312m" \
    JVM_XMX="312m" \
    JAVA_OPTS="-Duser.timezone=Asia/Shanghai"

ENTRYPOINT ["sh", "-c", "exec java -Xms${JVM_XMS} -Xmx${JVM_XMX} $JAVA_OPTS -jar /app/app.jar --spring.profiles.active=prod"]

EXPOSE 8045
